package com.suke.czx.modules.examstack.exam.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.suke.czx.modules.examstack.exam.dao.PracticePaperDao;
import com.suke.czx.modules.examstack.exam.entity.PracticePaperEntity;
import com.suke.czx.modules.examstack.exam.service.PracticePaperService;



@Service("practicePaperService")
public class PracticePaperServiceImpl implements PracticePaperService {
	@Autowired
	private PracticePaperDao practicePaperDao;
	
	@Override
	public PracticePaperEntity queryObject(Integer id){
		return practicePaperDao.queryObject(id);
	}
	
	@Override
	public List<PracticePaperEntity> queryList(Map<String, Object> map){
		return practicePaperDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return practicePaperDao.queryTotal(map);
	}
	
	@Override
	public void save(PracticePaperEntity practicePaper){
		practicePaperDao.save(practicePaper);
	}
	
	@Override
	public void update(PracticePaperEntity practicePaper){
		practicePaperDao.update(practicePaper);
	}
	
	@Override
	public void delete(Integer id){
		practicePaperDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		practicePaperDao.deleteBatch(ids);
	}
	
}
